package com.yupi.springbootinit.model.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class DepartmentTaskStatsVO implements Serializable {
    private Long departmentId;
    private Long total;
    private Long pending;     // 待处理: taskStatus == PENDING
    private Long inProgress;  // 进行中: taskStatus == IN_PROGRESS
    private Long completed;   // 已完成: taskStatus == DONE
    private List<Item> distribution; // 顺序：待处理、进行中、已完成
    private String updatedAt; // yyyy-MM-dd HH:mm:ss

    @Data
    public static class Item implements Serializable {
        private String type;  // 待处理 / 进行中 / 已完成
        private Long count;
        
        public Item() {}
        
        public Item(String type, Long count) {
            this.type = type;
            this.count = count;
        }
    }
}